package com.xiaoy.web;

import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.opensymphony.xwork2.ActionSupport;

@Namespace("/security")
@Results( {
	@Result(name = "error", location = "/WEB-INF/content/workspace/exception.jsp", type = "dispatcher"),
	
	@Result(name = "test", location = "/test.jsp", type = "dispatcher"),
	@Result(name = "addrole", location = "/bas/jsp/security/addrole.jsp", type = "dispatcher"),
	
	@Result(name = "saverole", location = "/common/jsp/success.jsp", type = "dispatcher"),
})
public class TestAction extends ActionSupport{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	public String test () {
		return "test";
	} 
	
	@Override
	public String execute() throws Exception {
		
		return "list";
	}

	public String save () throws Exception {

		return execute();
	}

}
